// @ts-nocheck
import * as http from '@/tools/http'

/**
 * 查询套餐
 * */
export async function getPackage(params: object) {
  return http.get('/api/system/package', params)
}

/**
 * 新增套餐
 * */
export async function createPackage(params: object) {
  return http.post('/api/system/package', params)
}

/**
 *修改套餐
 * */
export async function modifyPackage(params: object) {
  return http.put('/api/system/package', params)
}


/**
 *删除套餐
 * */
export async function delPackage(params: object) {
  return http.del('/api/system/package', params)
}

/**
 * 获取套餐周期
 * */
export async function getDuration(params: object) {
  return http.get('/api/system/package/duraction', params)
}

/**
 * 选择套餐
 * */
export async function SelectPackage(params: object) {
  return http.get('/api/system/package/select', params)
}

/**
 * 导入套餐
 * */
export async function UploadPackage(params: object) {
  return http.post('/api/system/package/upload', params)
}

/**
 * 下载套餐
 * */
export async function downloadPackage(params: object) {
  return http.get('/api/system/package/downloadPackage', params)
}
